package com.wp.design.create.prototype;

public class Test {
	public static void main(String[] args) throws CloneNotSupportedException {
		Mail mail = new Mail();
		mail.setContent("原始模版");
		for (int i=0;i<10;i++){
			Mail tempMail = (Mail)mail.clone();
			tempMail.setName("姓名"+i);
			tempMail.setEmailAddress("姓名"+i+"@qq.com");
			tempMail.setContent("您被录用了");
			MailUtil.send(tempMail);
		}
		MailUtil.saveOrigileMail(mail);
	}
}
